package com.jcl.traffic.system.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.*;
import java.util.List;

/**
 * @author jcl_hqu
 * @date 2020/12/26 16:52
 */

@Data
@Entity
@Table(name = "motor")
public class Motor {
    @Id
    private Long id;
    private String province;
    private String city;
    private String area;

    @ManyToOne
    @JoinColumn(name = "person_id")
    @JsonIgnore
    private Person person;

    @ManyToOne
    @JoinColumn(name = "motor_id")
    @JsonIgnore
    private BreakRule breakRule;
}
